//
//  SPCNavigationController.m
//  SmallPigCar
//
//  Created by 张令林 on 2016/11/1.
//  Copyright © 2016年 张令林. All rights reserved.
//

#import "SPCNavigationController.h"

@interface SPCNavigationController ()

@end

@implementation SPCNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    
}

#pragma mark - 重写push方法,适当的时候隐藏下面的tabBar
-(void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    if (self.viewControllers.count > 0)
    {
        viewController.hidesBottomBarWhenPushed = YES;
    }
    
    [super pushViewController:viewController animated:animated];
}
@end
